package com.yang.cloud;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author yang.yang@karakal.com.cn
 * @version V1.0
 * @Description: MicroserviceProviderUserApplication
 * @date 2017-11-10 15:31
 */
@SpringBootApplication
@EnableEurekaClient//表示把当前的服务注册到eureka上,只用于eureka
@EnableDiscoveryClient//可以用于所有的服务
public class MicroserviceProviderUserApplication {

    public static void main(String[] args) {
        SpringApplication.run(MicroserviceProviderUserApplication.class, args);
    }
}
